/**
 * Copyright (c) 2014-2015, Suredy technology Co., Ltd. All rights reserved.
 * @author ZhangMaoren 
 * @since 2015年4月14日
 * @version 0.1
 */
package com.suredy.config.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.suredy.config.model.DocTemplate;
import com.suredy.core.service.BaseSrvWithEntity;


/**
 * @author ZhangMaoren
 *
 */
@Service("DocTemplateSrv")
public class DocTemplateSrv extends BaseSrvWithEntity<DocTemplate> {
	public List<DocTemplate> getAll() {
		return this.readByEntity(null);
	}
	
	public DocTemplate get(String id) {
		return super.get(id);
	}
	public void add(DocTemplate template) {
		this.saveOrUpdate(template);
	}
	
	public void update(DocTemplate template) {
		this.update(template);
	}
	
	public void remove(DocTemplate template) {
		this.delete(template);
	}
}
